package com.afinal.intelligencetrash.ui.base;

import android.os.Bundle;
import android.support.v7.widget.Toolbar;

import com.afinal.intelligencetrash.utils.LogUtil;

/**
 * Created by cyy on 17-10-11.
 */

public abstract class AbstractBaseToolbarCoreActivity extends AbstractBaseCoreActivity {
    private static final String LOGTAG = LogUtil.makeLogTag(AbstractBaseToolbarCoreActivity.class);

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

    }

    /**
     * hide support action bar
     *
     * @param isHide
     */
    protected void setToolbarHide(boolean isHide) {
        if (getSupportActionBar() != null) {
            if (isHide) {
                getSupportActionBar().hide();
            } else {
                getSupportActionBar().show();
            }
        }
    }


}